<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
	<title>	Welcome to Digital Data Store</title>
	<script>
    	dojoConfig= {
        	parseOnLoad: false,
        	async: false
    	};
	</script>
    <script src="dojo194/dojo/dojo/dojo.js">
    </script>
   	<script src="common.js"></script>
   	<script src="buttonsPanel.js"></script>
   	<script src="discAllGrid.js"></script>
   	<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/claro/claro.css" />
   	<link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/dijit.css">
   	<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dijit/themes/claro/Dialog.css"/>
   	<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojox/grid/resources/Grid.css" media="screen" />
    <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.9.1/dojox/grid/resources/claroGrid.css"/>
    

    <link type="text/css" rel="stylesheet" href="css/style.css"> 
</head>
<body class="claro">
<script>
	dojo.require("dijit.form.TextBox");
	dojo.require("dijit/Dialog");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.FilteringSelect");

	require(["dijit/layout/BorderContainer",
	         "dijit/layout/ContentPane", 
	         "dijit/dijit",
	         "dijit/layout/TabContainer",
	         "dojo/parser","dojo/domReady!"],
		function(BorderContainer, ContentPane, dijit) {
		 	// create a BorderContainer as the top widget in the hierarchy
	   	 	var bc = new BorderContainer({style: "width: 1273px; height: 760px"});
		 	
	   	    // create a ContentPane as the top pane in the BorderContainer
	   	    var contentPaneUp = new ContentPane({
	   	        region: "top",
	   	        style: "height: 70px;",
	   	        href: "topPanel.jsp"
	   	    });
	   	    bc.addChild(contentPaneUp);
	   	    
	   		// create a ContentPane as the left pane in the BorderContainer
	   	    var contentPaneLeft = new ContentPane({
	   	        region: "left",
	   	        style: "width: 170px;",
	   	     	href :"buttonsPanel.html"
	   	    });
	   	    bc.addChild(contentPaneLeft);
		
	   		// create a ContentPane as the main pane in the BorderContainer
	   	    var contentPaneCenter = new ContentPane({
	   	        region: "center",
	   	        href: "tabbedPanel.html"
	   	    });
	   	    bc.addChild(contentPaneCenter);
	   	
	   	    // put the top level widget into the document, and then call startup()
	   	    document.body.appendChild(bc.domNode);
	   	    bc.startup();
	   		dojo.parser.parse();
	});
	
	var producerStore;
	var typeStore;
	
	window.onload = function createGridAndLoadStores() {
	  createGrid();
	}
	
</script>
<%
String userName = null;
Cookie[] cookies = request.getCookies();
if(cookies !=null){
for(Cookie cookie : cookies){
    if(cookie.getName().equals("user")) userName = cookie.getValue();
}
}
if(userName == null) {
	response.sendRedirect("index.jsp");
}
%>
</body>
</html>